﻿using System.Linq;
using TaskKernel.Domain;
using Xunit;

namespace TaskKernel.Tests
{
    public class AccountTest
    {
        [Fact]
        public void AddManagerToAccountTest()
        {
            var account = new Account("111111");
            var account2 = new Account("22222");
            var account3 = new Account("333333");
            account.AddManager(account2);
            Assert.Equal(1, account.MasterAccounts.Count());
            account.AddManager(account2);
            account.AddManager(account3);
            Assert.Equal(2, account.MasterAccounts.Count());
        }
    }
}